-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vcpkg ci] error out cmake related deprecated functions #31080
[vcpkg ci] error out cmake related deprecated functions #31080
Conversation
Okay I need to pick another var name. |
Thanks for your PR. |
The maintainer guidelines describe it as a suggestion because we did not want to force people to make unrelated changes for simple version updates and similar. There was still a lot of use of the deprecated function in the curated registry, and forcing people who aren't interested in overall 'cleanup' of code they don't own in our registry makes it less nice to be a contributor. Now that there are no calls to the deprecated functions left in the tree, I think we can block it entirely. Note that CI doesn't provide a means of testing this change because it only runs some of these scripts from master rather than from the PR branch. |
@BillyONeal Can't you trigger a manual run in the vcpkg.ci pipeline (no parent hashes, no caching)? |
I can trigger manual runs of the Azure Pipelines stuff against forks, but not Actions stuff against forks. (Because Actions can write-back to the repo and Pipelines can't, Actions only ever runs To meaningfully test changes to the Actions stuff one needs to setup Actions in their own fork with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This causes the bot to break. See test cases:
- Bad deprecated function: bad deprecated function BillyONeal/vcpkg#2 (Bot crashes)
- Bad cmake: Demo bad vcpkg_configure_cmake BillyONeal/vcpkg#4 (This one works)
- Good: demo good BillyONeal/vcpkg#3 (Bot crashes)
@JackBoosY Note: I will be converting your PR to draft status. Please reactivate this PR once it is ready for review. Thanks. |
@BillyONeal Please retest CI scripts. |
…jack/ci-add-error-message-deprecated
Can you test this on your repository with an Actions pipeline? See Billy's comment on how to do so |
Throw error message when cmake-related deprecated function is detected in the changes.
Related: #30070